package com.example.demo.model;
// model 是放实体类

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
// 接口的意思是声明可以序列化，要放到 Redis 就需要可以被序列化的
public class Userinfo implements Serializable {
    private int id;
    private String username;
    private String password;
    private String photo;
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private int state;
}
